package com.sg.qcgl.domain.ball_team.model;

import com.aimoss.core.pojo.AuditDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.annotations.GenericGenerator;
import java.util.List;
import java.util.Date;
import javax.persistence.*;

/**
 * BallTeamDTO
 *
 * @author ${author}
 * @date Thu Sep 04 12:28:40 CST 2025
 * @version 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "球队信息表领域模型")
@Entity(name="ball_team")
public class BallTeam extends AuditDomain {

    /**
     * 球队唯一ID
     */
    @Id
    @GeneratedValue(generator = "snowflakeId")
    @GenericGenerator(name = "snowflakeId", strategy = "com.aimoss.core.config.jpa.GenerateSnowflakeId")
    private Long id;


    /**
     * 球队名称
     */
    private String teamName;


    /**
     * 队长名字
     */
    private String captainName;


    /**
     * 运动类型（同court_info.court_type）
     */
    private Integer sportType;


    /**
     * 成员数量
     */
    private Integer memberCount;


    /**
     * 联系手机号
     */
    private String contactPhone;


    /**
     * 1-标识已删除，默认0
     */
    private Integer delFlag;





    /**
    * 判断是否是新球队信息表
    * @return true 新球队信息表，false 非新球队信息表
    */
    public boolean judgeNewly() {
        return id == null;
    }

    public void init() {
        this.delFlag = 0;

    }

    public void updateInfo(BallTeam ballTeam) {

    }

    public void delete() {
        this.delFlag = 1;
    }
}
